<!--
Name: requirement_details_view.tpl.html
Author: Philip D. Nichols (philipdnichols@gmail.com)
Description: Requirements details view page for Artemis CS411 Project 1.
Last Modified: 10/20/2008
-->

<br />

<form action="edit.php" method="post" name="form">

<input name="type" type="hidden" value="requirement" />
<input name="action" type="hidden" value="delete" />
<input name="id" type="hidden" value="{REQUIREMENT_ID}" />

<table width="600px" cellpadding="2" cellspacing="2" border="0" align="center">
	<tr>
        <td colspan="3" align="center" class="table_title">Requirement #{REQUIREMENT_ID} Details
        </td>
    </tr>
</table>

<br />

<table cellpadding="2" cellspacing="0" border="0" align="center" class="main_table" id="main_table">
    <tr>
        <td class="table_element_titles">ID
        </td>
        
        <td class="table_cells" width="350px">{REQUIREMENT_ID}
        </td>
    </tr>
    
    <tr>
        <td class="table_element_titles">Short Description
        </td>
    
    	<td class="table_cells">{REQUIREMENT_SHORT_DESCRIPTION}
        </td>
    </tr>
    
    <tr>
        <td class="table_element_titles">Details
        </td>
    
    	<td class="table_cells">{REQUIREMENT_DETAILS}
        </td>
    </tr>
    
    <tr>
    	<td class="table_element_titles">Status
        </td>
    
    	<td class="table_cells">{REQUIREMENT_STATUS}
        </td>
    </tr>
    
    <tr>
        <td class="table_element_titles">Comments
        </td>
    
    	<td class="table_cells">{REQUIREMENT_COMMENTS}
        </td>
    </tr>
    
    <tr>
        <td class="table_element_titles">Test Case References
        </td>
        
        <td class="table_cells"><!-- BEGIN test_cases --> <a href="test_case_details.php?id={TEST_CASE_ID}">{TEST_CASE_ID}</a> <!-- END test_cases -->
        </td>
    </tr>
</table>

<br />

<table width="250px" cellpadding="2" cellspacing="2" border="0" align="center">
    <tr>
    	<td align="center"><input name="edit_fields" type="button" value="Edit Fields" onclick="javascript:location.href='requirement_details.php?action=edit&id={REQUIREMENT_ID}';"
        onMouseOver="javascript:window.status='Edit Fields';" onMouseOut="javascript:window.status='';" />
        </td>
        
        <td align="center"><input name="delete_requirement" type="submit" value="Delete Requirement"
        onMouseOver="javascript:window.status='Delete Requirement';" onMouseOut="javascript:window.status='';" />
        </td>
    </tr>
</table>

<br />

<table width="250px" cellpadding="2" cellspacing="2" border="0" align="center">
	<tr>
       	<td align="center"><a href="requirements.php">Return to Project Requirements</a>
        </td>
    </tr>
    
    <tr>
    	<td align="center"><a href="test_cases.php">Project Test Cases</a>
        </td>
    </tr>
</table>

</form>